package com.zc.study.spring.第四章;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.aop.MethodBeforeAdvice;

import java.lang.reflect.Method;

public class LoggerBeforeAdvise implements MethodBeforeAdvice {
    private final Logger logger = LoggerFactory.getLogger(this.getClass());
    @Override
    public void before(Method method, Object[] args, Object target) throws Throwable {
        logger.info("before:the invocation of getContent");
    }
}
